package org.rency.crawler.common.request;

import java.io.Serializable;
import javax.validation.constraints.NotNull;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.rency.common.utils.domain.Extension;

/**
 * 描述: ${TODO}<br>
 * 最近修改时间:2017/8/30 16:18<br>
 *
 * @author CaiyuRen
 * @version V1.0
 * @since 2017/8/30 16:18
 */
public class BaseRequest implements Serializable {

  /**
   * 请求号
   */
  @NotNull(message = "请求号不能为空")
  private String requestNo;

  /**
   * 扩展字段
   */
  private Extension extension;

  public String getRequestNo() {
    return requestNo;
  }

  public void setRequestNo(String requestNo) {
    this.requestNo = requestNo;
  }

  public Extension getExtension() {
    return extension;
  }

  public void setExtension(Extension extension) {
    this.extension = extension;
  }

  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
  }
}
